package com.lanxin.util;

import java.util.List;

public class PageBean<T> {

    private int page; //当前页数

    private int pageSize; //每页显示条数

    private int rowCount; //总记录数

    private int pageCount; //总页数

    private List<T> data; //显示的数据集合

    public PageBean(int page, int pageSize, int rowCount, int pageCount, List<T> data) {
        this.page = page;
        this.pageSize = pageSize;
        this.rowCount = rowCount;
        this.pageCount = pageCount;
        this.data = data;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "page=" + page +
                ", pageSize=" + pageSize +
                ", rowCount=" + rowCount +
                ", pageCount=" + pageCount +
                ", data=" + data +
                '}';
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getRowCount() {
        return rowCount;
    }

    public void setRowCount(int rowCount) {
        this.rowCount = rowCount;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
